package com.teamclub.domain.erp.product;

import io.ebean.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by ilkkzm on 17-9-12.
 */
@Entity
@Table(name="erp_product_specs")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class ProductSpecs extends Model{
    @Id
    private Integer id;
    private String organNo;
    private Integer productId;
    private Integer brandId;
    private String specsName;
    private String specsCode;
    private String specsUnit;
    private String specsNum;
    private BigDecimal specsPrice;

    private Integer specsCodeSize;
    private Integer specsBatchSize;
    private Integer specsBoxSize;

    @Version
    private Date createdTime;

}
